﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using UnityEngine.SceneManagement;

public static class ResourcesPool
{
    public static readonly Dictionary<string, Sprite> Sprites = new();
    static ResourcesPool()
    {
        Resources.LoadAll<Sprite>("Sprites").Action((Sprite sprite) =>
        {
            string key = sprite.name;
            if (!Sprites.ContainsKey(key))
            {
                Sprites.Add(key, sprite);
            }
        });
    }
}

